\documentclass[a4paper,12pt,UTF8]{ctexrep}
\usepackage{longtable}
\begin{document}
\setlength\LTpre{0cm}
\setlength\abovecaptionskip{0pt}
\setlength\belowcaptionskip{1pt}
\begin{longtable}{|c|}
        
        \caption{命令汇总} \label{tab:cmd} \\
        \hline 
        \endfirsthead
        \multicolumn{1}{c}{\small 续表 \ref{tab:cmd}} \\ \hline \endhead 
        \hline \multicolumn{1}{c}{\small 接下一页表格} \\ \endfoot 
        \hline \endlastfoot 
        vs \\
        vs \\
        vs \\
        vs \\
        vs \\
        vs \\
        vs \\
        vs \\
        vs \\
\end{longtable}
Just remember when a dream appears.You belong to me,And I've be so alone without you.
\end{document}